<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Listas</h3>

                    <p:dataTable var="listaTemp" value="#{ListaController.listasProfessor}" emptyMessage="Nenhum Arquivo Encontrado" paginator="false">

                        <p:column sortBy="#{listaTemp.id}">
                            <f:facet name="header">
                                <h:outputText value="Id" />
                            </f:facet>
                            <h:commandLink action="#{ListaController.load}" value="#{listaTemp.id}" />
                        </p:column>

                        <p:column sortBy="#{listaTemp.titulo}">
                            <f:facet name="header">
                                <h:outputText value="Titulo" />
                            </f:facet>
                            <h:outputText value="#{listaTemp.titulo}" />
                        </p:column>
                        <p:column sortBy="#{listaTemp.dataCriacao}">
                            <f:facet name="header">
                                <h:outputText value="Data de Criação" />
                            </f:facet>
                            <h:outputText value="#{listaTemp.dataCriacao}" />
                        </p:column>

                        <p:column sortBy="#{listaTemp.numeroQuestoes}">
                            <f:facet name="header">
                                <h:outputText value="Numero Questões" />
                            </f:facet>
                            <h:outputText value="#{listaTemp.numeroQuestoes}" />
                        </p:column>

                    </p:dataTable>


            </div>
        </ui:composition>

    </body>
</html>
